<template>
  <div class="index">
    <!-- 二级路由的占位组件 -->
    <router-view></router-view>
    
    <van-tabbar route v-model="active">
      <van-tabbar-item icon="home-o" to="/index/home">首页</van-tabbar-item>
      <van-tabbar-item icon="search" to="/index/tuan">爆爆团</van-tabbar-item>
      <van-tabbar-item icon="coupon-o" to="/index/order">订单</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/index/mine">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
  
<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>
  
<style lang='scss' scoped>
</style>